package com.joinway.mobile.bean.view;

import javax.persistence.Entity;
import javax.persistence.Id;

import org.jsondoc.core.annotation.ApiObject;
import org.jsondoc.core.annotation.ApiObjectField;

import com.joinway.framework.bean.BaseBean;

@Entity
@ApiObject(name = "OrderProduct", description = "已购产品")
public class OrderProduct extends BaseBean {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2612099638002472715L;

	@ApiObjectField(description = "商品id")
	@Id
	int id;
	
	@ApiObjectField(description = "商品名称")
	String name;
	
	@ApiObjectField(description = "价格")
	double price;
	
	@ApiObjectField(description = "数量")
	int count;
	
	@ApiObjectField(description = "属性")
	String property;
	
	@ApiObjectField(description = "图片")
	String photos;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public String getProperty() {
		return property;
	}

	public void setProperty(String property) {
		this.property = property;
	}

	public String getPhotos() {
		return photos;
	}

	public void setPhotos(String photos) {
		this.photos = photos;
	}
	
}
